Is this legal?

Well, it's usually better to make up your mind, not to do what you're "supposed" to do.
i tried that once - my wife wasn't impressed