That depends on the particular LED with Motion Sensor (Smartsense) bulb.
The only two versions of the LED with Motion Sensor (Smartsense) that can be used in restrooms or outdoors are the LED with Motion Sensor (Smartsense) PAR38 (on the left) and the LED with Motion Sensor (Smartsense) G2 (on the right).
The LED with Motion Sensor (Smartsense) A19 (on the left) and the LED with Motion Sensor (Smartsense) BR30 (on the right) cannot be used in restrooms.