Sex while pregnant?

Mallory
I'm not pregnant, but my cousin is, and she expressed the concern about whether having sex while she was pregnant was healthy for her or the baby.. Is it?