Can you use a mortgage loan to fix up a house?

If I got a mortgage loan for a $25000 house, could I have the loan be for $35000-40000 to fix up/repair the house or does the money only work towards buying the house?
4 answers 4