Yes, magnets work on whiteboards, but that depends on the whiteboard, and what's it's made from. What makes magnets stick to a whiteboard is the steel sheet beneath the top whiteboard surface. The strong magnetic property of steel is what makes a whiteboard magnetic.
But not all whiteboards are magnetic. Some whiteboards, in fact most cheap discounted whiteboards, don't have magnetic properties because they are constructed of melamine or laminate only and do not contain the required steel sheet. These types of non-magnetic whiteboard tend to be a lot lighter in weight than magnetic ones. So yes, magnets do work on whiteboards, but this depends on whether the whiteboard is specifically designed to be magnetic.
If your whiteboard has a steel or other ferromagnetic core or surface, you can use it for all sorts of displays using magnets. Magnets will stick to these whiteboards because the ferromagnetic material can attract and hold the magnets. You can use these magnets to hold papers, notes, markers, artwork, calendars – all sorts of lightweight items - on the surface of a magnetic whiteboard. In fact, whiteboards with magnetic properties have transformed office spaces and classrooms, delivering an efficient, attractive and easy to use display board to communicate ideas, projects and education, and make those spaces more efficient and organised.