Does "refine" mean the same thing in these two sentences?

Refine pig iron.

Refine oil.
the same meaning