Pacemaker + Corosync instead of failover

Can I use Pacemaker + Corosync instead of failover?

Yes, Pleaes check this guide as a reference

2.11.2 Installing Budgets, Corosync, Pacemaker, and pcs