Yes, definitely you can. However, if you have a high risk pregnancy or other complications, your doc might tell you to abstain from having sex till the baby is born.
Yes you can have sex while you are pregnant it doesn't hurt a thing. But, after 4 months pregnant you cannot lay on your bag so you can not have sex in the missionary position. Other than that you are good to go.