I graduated with a degree in mechanical engineering and decided to quit my job to learn programming at home. Took me a year to get to the point where I'm comfortable and know my way around.
However, just because I taught myself doesn't mean that it was free. I had a year of lost wages which is about 65K, so all in all it costed about the same amount for me.