Sure you can. If you were renting it out instead of living in it, all those costs would have to be paid on behalf of the tennents. It's part of the cost of doing business. So whether you rent or buy for yourself, it's all part of the investment calculation.