You need to worry about common closing costs such as your home inspection, lender appraisal, and title insurance. Taken together, these expenses are nothing to sneeze at – depending on your situation, they can amount to anywhere from 3% to 6% of the total purchase price. In buyers’ markets, you might have luck convincing your seller to pay some closing costs, but that’s far from guaranteed.
As a buyer, just keep in mind that mortgage pre-approval is different from mortgage pre-qualification. Pre-qualify, and you're undergoing a much simpler process that can give you a ballpark figure of what you can afford to borrow, but with no promise from the lender. Getting pre-approved is more of a pain since you'll have to provide tons of paperwork, but it's worth the trouble since it guarantees you're creditworthy and can truly buy a home.
How you progress through a home buying transaction can vary somewhat depending on the real estate laws and customs where you live, but many steps are standard. You'll feel more confident about your home-buying journey when you understand the chain of events and what's required of you, as well as every other person who's involved in the transaction.

However, the devil is in the details. You have to pay back your 401k loans, with interest – typically at 2% above the prime rate. On larger loans, that means several years’ worth of three-figure monthly payments and several thousand in interest charges. Plus, if you take out a 401k loan before applying for a mortgage loan, your credit utilization ratio will spike, which could raise your mortgage loan’s interest rate or cause the bank to think twice about lending to you in the first place.