Is cider a type of beer?

No. Beer is made primarily from grain, whereas cider is made from apple juice. Because wine is also made from fruit juice, cider actually shares more in common with wine.

It’s possible that one may encounter a “cider” made from pear juice, in which case the proper terminology for this drink would be “perry.