Advice?

Can you have sex while your sick from the stomach? Or is it bad.?