Most phones are rather expensive on their own, although most providers can take unlocked phones and use them (some retailers here give discounts on unlocked phones when activating them!) but if you're short on cash, I'd get a phone as part of a deal, then attempt to unlock it then. Once you buy out your contract if you so choose, you'd be free to do whatever with the phone since it'd be unlocked.