Can I earn EuroBonus points and use my benefits when flying codeshare or a chartered flight?

Can I earn EuroBonus points and use my benefits when flying codeshare or a chartered flight?