Yes, the sentence "You had better leave now." expresses advice.
The phrase "had better" is used to give strong advice or recommend a course of action, implying that it would be wise or beneficial for the person to leave now. It suggests a sense of urgency or a consequence if the advice is not followed.