How accessible would it be? How secure? Will the coop support what might become a very heavy hive? Would the chickens be able to access the hive?
I, personally, would not do this. Even if the roof of my coop were accessible (it's not: it's about 8 feet above the ground) and flat (it's an arch)...