Restriction of religion would not keep someone from living with a purpose because we can find many different things to drive ourselves toward. We make goals and aim towards further improving our lives for ourself and those we love. However, no one should be able to keep someone from believing and choosing their own religion.
I do not think that a restriction of religion keeps people from living for a purpose. I don't think that people's religions should be restricted, but in general, people can find purpose and meaning in many things like helping others, hard work, love, music, art, being parents, etc. People who do not have a religion can still live with a purpose and they do.