Yes, it's fine. In your sentence, had to go is in the past tense. Present tense: You have to go shopping today.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
TeoIsn't it odd to use had to to express a past obligation that was not fulfilled?In your sentence, Teo, had to has this meaning (from have):