Yes, winning a war means achieving your political objectives. For example Iran wins this war even if they maintain the status quo. And they are on track to get even more, like obtaining ownership over the strait.
Then by the stated aims going in the US “won” both wars in Iraq.
The notion of owning or monetizing an international waterway is fundamentally incompatible with customary international law. Iran can try it anyway if they're not worried about international law, but that was always an option for them, war or not. The timing of performing this extortion now seems to be mainly about scoring war propaganda points.