Yes, any multi-unit dwelling with an attached garage (or fuel-burning appliance present) must have a carbon monoxide detector installed.
Even if the apartment doesn't have direct garage access, the Carbon Monoxide Poisoning Prevention Act stipulates that a CO detector must be installed. The reason being that carbon monoxide gas can still move from the garage into an apartment through ventilation ducts.