Birth control n ejaculation

If you're on the pill or the birth control shot can your partner cum inside you ? I know it sounds like a stupid question but I mean can he always do it or is it better not too