if a snake has a hood does that make it a cobra

if a snake has a hood does that make it a cobra