Yes, you can safely swap the cable that connects the PSU to the outlet. Just make sure it has the same rating (written on the original power cord if you look closely), or better, than what you have now.
You could also use an appropriate extension cord or power strip to gain the additional length.