Investors & landlords

In this case if I own the home and rent 2 rooms out can I also deduct month's as a loss that have no Tennant in said room