Can you have sex when your pregnant?

Is it possible?