If one end fits your standard wall socket, the other fits the socket on your PS4 and there's no little box in the middle of the cable then it will be fine.
What power supply does a PS4 use?
The PS4 Slim has a 110V-240V, 50Hz/60Hz, AC power supply with a power rating of 165W. The original PS4 has a very similar power supply spec to the PS4 Slim. The original PS4 has a power supply that is AC, 110V-240V, 50Hz/60Hz, but has a 250W power rating. PS4 power supply problems are quite common.
What kind of power cable does PS4 use?
Product Description This 8' Long Power Cord Features 2 Blade 'Non-Polarized' Molded Plug Which Will Fit Any Standard US Power Outlet. It Is For Use With The SONY Playstation 4 (PS4) - UL Listed & RoHS Complaint - LEAD FREE - High Quality 7A 18AWG 125V Cord - For Indoor Use Only.