If you trim them, it will not hurt them.
However, they do use their whiskers as a sixth sense, so you might be limiting their ability to play or hunt for a while.
Dogs' whiskers are called vibrissae.
whiskers also help protect Dogs' eyes like human eyelashes.