Covering a fire alarm with a sock may not work because newer detectors can still detect smoke particles. It's best to avoid smoking near fire alarms or use alternative methods like opening a window and using fans to blow smoke away from the alarm.