Incorrect. The host doesn’t need to choose randomly. His purposeful behavior could also be random. The only way you know the switching to be optimal is if it specifically says he picks a goat door to open.
If it says he opens a door, and it has a goat, then you’ve learned nothing about the remaining two.
If it says he opens a door, and it has a goat, then you’ve learned nothing about the remaining two.