how does pregnancy affect education