They are on in the same sterile area -- you can get from your inbound flight over to Cape Air without leaving security.
I think that United will check a bag through on Cape to UIN (if you've checked a bag) for you, but of course find that out before you leave. If you have to retrieve your bag as the carousel and re-check your bag, of course you'd need to leave security to do that.