Yes, a magnetar is a type of pulsar. Both magnetars and pulsars are types of neutron stars, which are incredibly dense remnants of massive stars that have undergone a supernova explosion.
Pulsars are highly magnetized, rotating neutron stars that emit beams of electromagnetic radiation from their magnetic poles. As these neutron stars rotate, the beams of radiation sweep across space like the beams of a lighthouse, resulting in periodic bursts of radiation that are detected on Earth. These regular bursts give pulsars their name.
Magnetars, on the other hand, are a special subclass of pulsars that have extremely strong magnetic fields, on the order of trillions of times stronger than Earth's magnetic field. These intense magnetic fields give rise to powerful bursts of X-ray and gamma-ray radiation, making magnetars some of the most luminous objects in the universe.
So while all magnetars are pulsars, not all pulsars are magnetars. Magnetars are characterized by their exceptional magnetic fields, which set them apart from other pulsars.