Well, you might use it for that but It depends on how you're going to use it.
I don't know your project of course but using a pathfinder might be overkill in a 2D side-scrolling platformer as usually enemies have very basic behaviors in such games and don't need to get out of a maze to reach the enemy.