There was no problem to do it with the Bf 109 of any kind. The MG FFM was bulkier, with the drum, and it still fitted. With some changes, the Spanish managed to install the bigger Hispano cannon in the wing of some of their 109s made post war.
Much depends on what you want for the firepower to do. The MG 131s were okay against the Allied fighters, but barely usable against the bombers, from Il-2 upwards. Fitting the MG FFMs within the wing from the 109F onward would've added far more firepower, without a great drag and weight penalty.