2

Generally speaking, yes, if and only if all the conditions below are met:
You don't have bags checked in.
You can check in for flight B either online or at a transit counter in place 2.
Your flights are both domestic, or both international.
If both your flights are international, place 2 has to ...