Asking for a friend

Rebecca
My friend is 31 weeks pregnant and was wondering if it is safe to have sex.