@deebouchie I do that and it works great. I rent one of the rooms of me gaff and it helps a lot with the mortgage.
If you are already used to share, and especially if you are single, it is a no brainer.
Just keep in mind that the total value in a year has to be less than 14K/year.