Yes, it is legal to replace lower receivers, but the law can vary depending on location. It is important to remember that a lower receiver is classified under the same regulations as a complete rifle by the ATF. Therefore, it must be purchased through an FFL or transferred with their assistance