Arduino Sensor Ceiling Installation with cover

I purchased this Arduino Motion Sensor without a cover and I want to install it in a ceiling.
Can I just "friction fit" it into the ceiling drywall to its base and leave the "bulb" part sticking out below
the ceiling drywall surface?