You need to verify guage based on amps and length. Google has plenty of charts.

Amps also need to be verified for the panel draw and the plug rating.