Yes, you can take in a paying guest or lodger, as long as you are still living in the property and do not sign a tenancy agreement.
It would make good financial sense, however, to verify through an Independent Financial Advisor IFA that the costs of home ownership are affordable to you prior to purchase. I would also advise you to double check the lease with the HA you are dealing with beforehand.