Transplanting wild phlox

I have lovely volunteer wild phlox growing in my garden where I don’t want them, but I have a perfect place where they would look wonderful. Can I transplant them, and if so, when is the best time to do…