Hello,
That is not really a simple yes or no question. The simple answer is no... because it depends very heavily on the mechanical design of your quadcopter, assuming you have compatible speed controls, and all your sensors/gps/radios/rc etc is set up correctly and working. If you happen to have similar motors, props, all up weight, batteries and mechanical structure of your quad as to the quad for which that firmware was designed, then there is a chance it would just fly. There is a chance it will be able to fly regardless, even without a similar mechanical design, but it might be very very poor performance without any tuning...
Thanks,
-Stephen Dwyer