Yep fine. Though the pre allocated vector might be slightly faster. Memory is not important since it is a vector