In the books, Riker and Troi are receiving genetic therapies to help concieve. Helping during childbirth/pregnancy is the only exception to the rule apparently.
It can be done to correct potentially fatal or debilitating medical conditions, but not to make your kid a superhero.