Sort of. In early Minecraft (2009, beginning from when it was called Minecraft: Order of the Stone, until the Survival Test later that year, you could spawn mobs by pressing G) These mobs were Steve, and if you edited the model to have white eyes, you had Herobrine spawning with the key G.
Herobrine was a MOB in minecraft
 
    
  
  
  Actually I'll give you my name because I have no idea how to do it and I suck a java popular only good at bedrock
 
    
  
  
  It’s in is mc.mineberry.org
 
     
     
     
     
      
apparently now u can get herobrine by using mods but before herobrine just spawns