Yes, you can say that, but we usually do not repeat word for word, which can sound a little abrupt. This is better, for instance: A: Can I take it as a confirmation? B: Yes, I will certainly be there.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.