Yes, ad blockers are totally legal. It is within users' rights to decide whether they want to see ads on websites they visit or programs they use.