Yes, also with a temporary residence permit you can get a mortgage. Better is if you have a permanent residence permit, but there are possibilities. But it is also depending on you nationality and employment contract if you can get a mortgage.
Comment on this FAQ