Should i file jointly or separately?

When I put in just my info from my w-2 separately, I was expecting a refund, but when I added my husband's info, it stated I owed money. When I deleted my info and left just my husband's info, it changed back to getting a refund. Is it possible to owe money if I file jointly and get a refund if I file separately? I am trying to figure out the best possible option to file for 2018.