Before or after the first movie?
I wouldn't consider it canon to the live action films. It was based more on the original comics than del Toro's adaptations.
It's in its own continuity separate from the movies and comics. Hellboy: Blood and Iron fits into this continuity though. Welcome to my Nightmare- Freddy Krueger