I like this idea. Also, you could get military bonuses when invading/defending a planet which is of your preferred type.
Maybe you can also have a separate "favored terrain" attribute - plains, forests, mountains, etc - affecting how much use you get from the different continents on the planet. Again, this would affect planet defense.
In the game Stars!, a planet has three environmental values - gravity, temperature, radiation - and at the start, you specify the range your race can live in. You can have your species be able to live ANYWHERE - or you can have them be super finicky and get a ton of extra points to spend on other race attributes. You can also terraform planets to fit your race, but changing a planet too much outside of its natural value is pretty hard, so some planets remain more attractive than others.
Having different civilizations prefer different planets can be a feature - another variable to consider. If you make an ally of a civ that loves planets you hate, you would have much less competition, and together you could make the best use of your territories. On the other hand a civ that shares your environment preferences can interact with you a whole lot easier, fostering good relations, increased trade profits - and more spying opportunities.