Opt out of the second leg?

I'm flying from TPA -->BWI, it's more expensive to fly that route than go to Boston with a stop at BWI. What happens if you don't take the 2nd leg? Returning, can you just take the 2nd leg? TYIA