Yes, regardless of whether you buy your ticket from the tram driver or in advance, you will need to scan it on the ticket reader machine that is situated near the driver.