Assuming we have the time and staff, I think the type of trouble she's having matters. Is she having trouble in the sense that she just doesn't understand programming at all or is she having trouble because she's just nervous? If it's #2, that's a lot more reasonable. If she's having trouble because she's not sure this is for her yet and she may just "not get" coding, I think that could be a lot more dangerous. But as the other guys said, this all depends on the project because if we're talking about a small job with a couple of people, it's much less likely to want to hire someone like this, whereas the big employers can afford to train some newbies.