I have not done this myself, but yes it should work. Drop your JAR file into the userlib, and then set up your connection string like the answer in this SO question:
https://stackoverflow.com/questions/32970871/connecting-to-mongodb-using-jdbc-driver
Give it a try and let us know how it goes!