Using Relay With Microcontroller
Yes, that should work. Food for thought: SSRs (solid-state relays) are great because they "just work", but if you're building large quantities of this device, you'll probably want to use a high-side switch; they're way more economical, and can switch at much higher frequencies (since they're electrically, and not optically, coupled). You have to think a little harder when you go to hook one up, though.