Investors & landlords

yes. in this situation

but be aware under current tax law if the child has more than a specified amount of unearned income and depending on their age there can be what is referred to as the Kiddie tax

https://www.irs.gov/taxtopics/tc553