Sex while pregnant

Kind of a weird question but is it bad to have sex while I’m pregnant?