In case of a moving body, as force of friction is p mg, can we regard /urngx as potential energy similar to mgh?

No, potential energy is defined only for conservative forces.