Both are fine and have the same meaning. Sentence A is the more common one as there really is no need for the preposition after sure. In some other similar sentences a preposition is required, though: I'm not interested in what he said.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.