Is duet rule or octet rule is same?

Can you answer this question?