I believe they used to make the previous console at a loss, because they generate most of their profits through the sales of games and accessories. I believe.
Yes, the PS3 initially launched at a loss(mainly because of the Blu Ray player from what I remember). Towards the end of its lifetime it wasn't losing them money.