Can I buy the Solo 3DR drone and use the Copter firmware?

I am new to this site and to the world of drones. I am interested in the software side of the drones.
So I want to understand if I can buy the ready-to-fly Solo from 3DR and replace its firmware with the open source firmware of Copter?

My longer term target is to develop some new control algorithms and download to the drone.