Is it safe to connect a #30 bulb directly to the arduino output pin

Try putting a cap in parallel to smooth it out.