I'm no code expert but as I understand it, yes if you use fire caulk as per exception #2 in 713.3.1 and you are going to surface mount the switch on the drywall in the garage.
713.3 Fire-resistance-rated walls. Penetrations into or through fire walls, fire barriers, smoke barrier walls and fire partitions shall comply with Sections 713.3.1 through 713.3.3. Penetrations in smoke barrier walls shall also comply with Section 713.5.
713.3.1 Through penetrations. Through penetrations of fire-resistance-rated walls shall comply with Section 7188.8.131.52 or 7184.108.40.206.
Exception: Where the penetrating items are steel, ferrous or copper pipes, tubes or conduits, the annular space between the penetrating item and the fire-resistance-rated wall is permitted to be protected as follows:
In concrete or masonry walls where the penetrating item is a maximum 6-inch (152 mm) nominal diameter and the area of the opening through the wall does not exceed 144 square inches (0.0929 m2), concrete, grout or mortar is permitted where it is installed the full thickness of the wall or the thickness required to maintain the fire-resistance rating; or
The material used to fill the annular space shall prevent the passage of flame and hot gases sufficient to ignite cotton waste when subjected to ASTM E 119 or UL 263 time-temperature fire conditions under a minimum positive pressure differential of 0.01 inch (2.49 Pa) of water at the location of the penetration for the time period equivalent to the fire-resistance rating of the construction penetrated.
7220.127.116.11 Fire-resistance-rated assemblies. Penetrations shall be installed as tested in an approved fire-resistance-rated assembly.
718.104.22.168 Through-penetration firestop system. Through penetrations shall be protected by an approved penetration firestop system installed as tested in accordance with ASTM E 814 or UL 1479, with a minimum positive pressure differential of 0.01 inch (2.49 Pa) of water and shall have an F rating of not less than the required fire-resistance rating of the wall penetrated.
Side note: whats wrong with it where it is in the picture? Don't want it inside your house looking ugly? Also, some of those wires look a little short. You may want to cut as much of the BX as you can leaving just enough to connect it.