My wife is pregnant. Can she go to a relatives funeral; to the cemetery?
The custom is to avoid going, although strictly it’s permitted.
When there is need to go (she really wants, etc.), it’s best not to be in the same room as the deceased and generally to stand at a distance.