@Samuel Kim
Short answer is "yes." I have worked with many medical professionals where they adopted the basic strategy you are trying to use. Really the main challenge is going to be making sure that your wife understands what she needs to do to document her hours and activities. As others said, becoming a licensed realtor is helpful as when it comes to filling up the hours.
Just note that you guys may end up in what I call the "1031 exchange until you both die" cycle. It's a way many medical professional + spouse combo have saved a lot of money on taxes. But it is a serious commitment.
But do talk to a CPA/tax professional who has done this. There will likely be some hand holding in the beginning. Also assuming your practice is going well, consider talking to asset protection attorneys. Depending on your practice size and income level, you may just want to start with maxing out 401k and also adopting a defined benefit plan before committing to becoming a lifelong real estate investor.
Disclaimer: While I’m a licensed attorney, I’m not your attorney. What I wrote above does not create an attorney/client relationship between us. I wrote the above for informational purposes. Do not rely on it for legal advice. Always consult with your attorney before you rely on the above information.