Yes. You can use both Fargate and EC2 instances in the same cluster. As a best practice, use Fargate for short-running tasks and EC2 instances for long-running tasks to gain Fargate’s cost advantage.