Do you mean do they know that you took the previous flight connecting to the current one, or which connecting flight you had? They can see the flights on your ticket, if they want to look them up, you won't get on the plane if you miss the previous flight