Yes, that will work exactly as Sjoepele said.
I recommed using another parentheses, even though it isn't required it helps to make a habit of doing it for future stuff.
if (($nick == newbie) || ($nick isop#)) { do stuff }
This way you can have other stuff as well.