It really depends on the planet. Most can't support life for sentient beings, but there is still a lot of plant and animal life we can study. With planets where the local population has reached the ability to go into space, we start diplomatic talks. If they haven't reached the point of space exploration, we study them from afar, but don't interfere.