"Can" does not mean "Should." A guardian likely "can" make such an investment but the more important question is SHOULD you make that investment, would it be "prudent" which is the norm for investment by fiduciaries.
The bigger the portfolio, the more likely a real estate investment might find a good place in it. The smaller the portfolio, the less one would expect to see real estate investments among proper asset allocations. Can't say much more than that.
If you are the guardianm then all furnds held for the benefit of tghe child should be in a restricted account. If you wish to make investments, you need to get permission of the court before treansferring any funds or purchasing any property.