question about the codes

if a friend gives me his codes… will it work?