Yes, maple syrup can certainly be used instead of molasses. It is a great substitute overall. While it does not have the same taste as molasses, it does have a similar consistency. Given this, it will help to keep the consistency of the recipe as close to how it was intended to be as possible.
Maple syrup is lighter in its taste in comparison to molasses, and it is slightly thinner too. However, it can still be used as a direct 1:1 ratio. As it is slightly thinner, while it will not make too much of a difference, the recipe may be slightly thinner, which is worth keeping in mind.