Yes, all special abilities are mandatory unless the wording specifies otherwise (e.g. the Warp Beacon says ‘up to’). This applies to the flak cannon, but also any weapon effects e.g. in the event of friendly fire during a 2v2 game you must apply the weapon special effects to your ally.