Sex While Pregnant

This really isnt a birth story but i want to know if you can have sex while you are pregnant or is it like recommended.