You can replace power tool parts yourself if you have the necessary skills, tools, and understanding of the specific power tool. Many power tools come with user manuals that provide detailed instructions on replacing parts, which can be helpful for DIY enthusiasts. If the part replacement is straightforward, such as changing a blade, battery, or a simple component, and you feel confident in your abilities, you can likely handle it yourself. 
However, for more complex repairs, such as those involving electrical components, motor parts, or intricate mechanisms, it might be safer and more efficient to hire a professional. Professionals have the expertise and experience to ensure the repair is done correctly and safely, reducing the risk of further damage or injury. Additionally, if your power tool is still under warranty, attempting a DIY repair might void the warranty, so it's advisable to check the warranty terms before proceeding.
Consider the cost and availability of replacement parts, as well as the potential need for specialized tools. If the parts are expensive or hard to find, or if the repair requires tools you don't have, hiring a professional might be more cost-effective in the long run. 
Ultimately, the decision depends on your comfort level, the complexity of the repair, and the value of the tool. If in doubt, consulting with a professional can provide peace of mind and ensure the tool is repaired correctly.