Yes! A household may have several members with income that can be used to pay the mortgage. Usually, lenders only count income from the resident who is obligated by the loan.
You can get more details about both Fannie and Freddie programs here :
https://themortgagereports.com/24248/home-possible-versus-homeready-which-is-better
Fannie Mae considers non-borrower income a compensating factor. This can help a borderline applicant get an approval he or she would otherwise not get.
Freddie Mac's Home Possible Advantage does not count non-borrower income.
However, both programs count boarder income. So if you have been living with someone for at least a year, and he or she has been paying you rent, you can count this as income.
Here's the full scoop on HomeReady:
https://themortgagereports.com/18653/homeready-mortgage-guidelines-interest-rates