Switching plugin cables

I’m using a Bosch Power Max charger with a 25’ cable.
Cable is too short.
I have a longer cable from a SPX 240v charge station.
Can I switch cables? Are the 5 color coded wires the same on both units?