What your friend told you is NOT Catholic teaching. There is, of course, the possibility of purgatory before heaven. But some people do go directly to heaven--certainly as in the case of martyrs. Our Lord told the 'good thief' the he would be in heaven that day (Luke 23:43).
Fr. Vincent Serpa, O.P.