Does the penis have to be erect on order to have penetrative sex?

And if it's erect, won't there be ejaculate? Or does ejaculation happen after further stimulation?