Yes. Go to a lender (a bank, for example) and ask to be prequalified. A prequalified acceptance by a lender is a good indicator, but not a guarantee, that you will be accepted for a certain loan amount. Always make your offer to purchase contingent upon getting your loan. If you do not, you become a cash buyer. There is a difference between prequalifying and being preapproved.
You can lose your deposit if you cannot complete the purchase and do not protect yourself with the contingency that you get your loan.