Can I connect pins to high voltage?

The forward voltage is 12V, and current draw is about 100ms.