At the present time most states allow you to do whatever you want in your own home. But doing electrical work yourself is a gamble. How much are you willing to risk to save money. There is a reason why it takes so much training to become an electrician. Do not make a mistake by taking electricity lightly, even the smallest job is a safety hazard. Why take a chance. Get a professional to do this work.
Although in some states the homeowner can pull his own Electrical permit for work in his single family home, what the homeowner does not know is that in case of damage or fire caused by his work, his homeowners insurance will not pay. They will only pay if the work is done by a licensed Electrical Contractor. You should check with your homeowners Insurance Co., and they should sign a document or something to this effect to acknowledge this when they pull a permit.
The most dangerous time is when you think that it is simple to change one or two wires. Suddenly you are surrounded by a tangle of loose ends and cannot recall where they all go. Then you need a professional to come and sort it all out for you. This could end up costing you more than you thought you were saving when you began the project.