Yes. That is what "clear()" does.