online classes with a baby at home

Has anyone taken online classes with a baby at home? I want return to school but can't because I have a three month old  so I was thinking of taking online classes. I'm just scared of it being hard and not going through with it. What was your experience ?