How to use previous project Gemfile?

I want to set up a new project and use all the gems in a previous
project in their current state in that project. What should I do to
make this happen? Do I just copy and paste the Gemfile.lock over to
the new project Gemfile.lock?