You will arrive with Delta in Terminal B. Cape Air departs from Terminal D. It's about a 10 minute walk. You do not have to go back through security to change planes. Enjoy your trip.