Once I can afford a flat, the first thing I'll do is get a dog.
Tips
grammar
A potential complement: 买得起 (can afford) and 买不起 (can't afford) work with any spending verb: 吃得起 (can afford to eat), 住得起 (can afford to live in), 用得起 (can afford to use). 起 here means being able to bear the cost.