Cumming

I've never had sex but I'm so nervous for what to do when the guy is ready to cum! When he has a condom on and he cums inside you, does it just go in the condom and he throws it out?