Welcome to PT.

Terriers are/were bred to kill small animals -- so it can be touch and go. Some rescues are able to tell you whether or not an adult dog is good with cats. If you get a puppy and socialise it with the cat, it should be perfectly fine. They could even be good buddies.

Good luck!