I don't think so.
A work-around could be to make the ship totally bad and useless. But if the planet has that strategic resource building (or spaceport module) it will give a modifier to the ship, so that it is restored to it's normal useful state. But you can still build 1000 ships with only 1 strategic resource.