Say whaaaat? What sort of program? At a university? That's the strangest thing I've ever heard! You say two year so I wonder if you are talking about a specialized program?
I second the notion, though, that it's always possible to work. Waiting tables a night or two a week takes little time and pays well (relatively). Most undergrads work, and those that don't almost always accumulate loan debt (unless their parents are paying for their living expenses).
It's not easy. In fact, it sucks. I wanted to quit so many times during my undergrad! But it [typically] gets easier after the BA, when you can teach and get a stipend. My h is a PhD adjunct and we live off his teaching stipend now and it's pretty good (though he does teach 5 classes, so, it's no joke).
If grades, and needing time to study, sleep eat and care for a family, are factors, working is not feasible. Graduates from past years began the first semester working, but found that it was difficult to maintain a respectable grade point average so they were forced to quit their jobs.
However, the tuition is surprising low. I attend the top university in the state, a respected school across the country, and the tuition is 1/3 what I paid at another school in the same state. The yearly cost of attendance is 25K more than the cost of tuition, so it is possible to receive loans, grants and scholarships that will cover living expenses for a small family if one other person is employed.