Yes. You can extend the ridged conduit with flexible conduit to the spa control box. You need to use the correct connectors. Your ground wire will run from your panel through the conduit and flex and land on the ground terminal in the control box. It must be GFCI protected.