If I flash my ROM or wipe my device after buying an app, will I have to buy it again?
No, the market keeps track of your purchases. 

Purchased apps can always be downloaded using the Android Market, assuming you are signed in with the account that you used to make the purchase.