AI using tracking and pathfinding together

Hello, does anyone know if its possible to have an AI use pathfinding (ex: find cover) and track the player at the same time? Like how a person would be looking at something and walk the other direction to something. Anything would help, thank you