Most of the time it will work without the = yes. Sometimes it will not.
It is good practice to use the correct syntax ALL the time to avoid errors when the incorrect syntax will not work.