Can I run ArduCopter code on Pixhawk 4?

Hi,
I wanted to know if I could run code written for ArduCopter on a Pixhawk 4?

Maybe