Just be aware this is a cultural judgement. In the U.K., many shelters will not adopt out cats to people planning on keeping them inside, as it is deemed cruel.
I live in the US with 2 indoor cats, and don’t let them out for the reasons you mention.
However, I understand the other side of the debate also. We do a lot of work to ensure our cats get enough stimulus.