But perhaps not right away.
I've worked for a couple of companies where programmers worked most of the week from home. At least once a week they spent a day in the office for staff and other meetings. The rest of the time they used the phone to keep in touch. The company footed the bill for equipment and high speed connections.
The bad news is you need a mature organization and the "privelege" is usually extended to senior self motivated programmers. It also limits your career path cause managers or project leads dont get to work from home often.
If you want to work from home to avoid daycare expenses, most companies insist that you must be able to devote all your time to work, so you would have to hire someone. But at least could spend lunch and breaks with your kids. Telecommuting also helps with people who need flexibility in their schedules.
The other alternative is to go into business for yourself and work from home. I would recommend a few years of working for someone else first to get some references and experience.
Don't let the naysayers get you down. It can happen with planning and perserverence.
James