Can u have sex during pregnancy

Is it okay to have sex during pregnancy ? Even when your stomache is huge?