Generally speaking, no. Unless you are a licensed electrician, it is illegal to do electrical work yourself. All electrical work must be done by a qualified professional in order to ensure safe There are a few exceptions, such as changing a light switch or outlet. But for anything more complicated than that, it's best to consult with a licensed electrician. They will be able to advise you on what needs to be done and can help ensure that the job is done safely and up to code.
Yes, as long as you are qualified to do so. In the United States, there are no federal laws that prohibit electricians from doing electrical work themselves, but there may be state or local laws that do. It is always best to check with your local building department to make sure you are in compliance with all applicable laws before beginning any electrical work. If you are not a qualified electrician, it is always best to hire a licensed professional to do any electrical work in your home. Electrical work can be dangerous if not done properly, and it is better to be safe than sorry.