If the airport lounge isn’t in the terminal you’re flying out of, you’ll have to abide by the security restrictions in that airport. If security checkpoints allow you to transfer to another terminal, you’ll still be able to visit the lounge.