can i buy a house during student loan forbearance

Can I buy a house during the student loan forbearance? Should you exit forbearance to buy a house?