Would charging your phone while connected to the glasses work with a magsafe?

Have an s23 ultra with the rokid max and wanted to know if this would work?

Even if it holds my battery percentage instead of charging it, I'm cool with that too.