Yes, it was. The Joker movie drew inspiration from various comic book storylines and interpretations of the character.
Definitely based on a comic book. The Joker has a long and rich history in comics, and the movie tapped into that to bring his complex character to life. It borrowed themes, character traits, and some plot points from the comic book universe.