Likely have a listing contract that would make it hard to go direct. However
a listing contract is usually for a set period. If the contract expires then you could go direct but not if you were contacted by or through the agent during the listing period.