No, a humidifier and dehumidifier are required if you want to add or remove moisture from the room.
Air purifiers only function to remove impurities, particles, and odor from your surroundings.