Yes (except for the missing full stop). But most speakers would use the simple past tense: I could not tell you what I wanted to say on that occasion.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.