Defragging my HDD, is it safe?

Hello everyone!

I have returned with another issue in regards to my PC. After about a month of my computer working perfectly again, it had started crashing again and I decided to do a little more research. Turns out that my C drive (Windows and Origin drive) is 16% fragmented. The guy who gave me the HDD and helped build it said that it was to be expected since it was from his store and was recycled, but anyway I wanted to know if it was safe/smart to defrag it or just to get a new one and transfer all the data over.

Much love!

-Ridiculous