Can a boy under 11 years old ejaculate?

If it hurts as you say, you are trying too hard and are slightly injuring yourself. Take your time.

Yes. Ejaculation capability is not driven by age, but by the boy's state of maturation.