Yes electric beard trimmers are allowed on airplanes and you can take your electric beard trimmer on the plane through checked luggage or even carry on luggage.
However you're not allowed to take straight razors on the plane or any other type of razor unless the blade is removed.
But electric beard trimmers and electric shavers are allowed on the plane in both carry on luggage and checked luggage.