Is a law the same as a rule?

Perphas, meaning of RULE & LAW is same but Law is official word where Rule is unofficial.