Yes, if a person ejaculates intentionally, his fasting is invalidated and he has fallen in a great sin.

Read more