Yes, so long as your Travelcard is valid on the day of travel and covers zones 1-6. Heathrow Airport is on the Piccadilly Line in London travel zone 6, so Travelcards covering only zones 1-2 will not be valid. You can use Travelcards when travelling on the Elisabeth Line services.