Yes, I bought my fist home this way - that was decades ago however.
I put a tenant/buyer in one earlier this year.
Choosing an experienced professional will be your key starting point.
Your next issue will be credit and your projected financial strength.
I would contact a local real estate professional to help with this answer and to save time and money.
(I'm on the Cape, but I can help you choose a local pro if you want help doing so.)
I'd hire an attorney, too.
(Please note: when you choose an answer as a Best Answer, or at least give a thumbs up, it helps those who answer questions here.)