No you don't have to get the smog first. You can come in and pay the fees and if a smog is required they will let you know. They only thing is that once you get the smog you would have to return to pick up your tags. You can also pay at the kiosk and once you get the smog the tags will be mailed to you.
When you get your registration in the mail it'll tell you if a smog is needed. If not then it's every two years you'll have to get it smogged that's if it's the same vehicle.
Thanks! Your answer is awaiting moderation.