Drive 3 going bad, how to replace?

I’m running an EX4 with 4 drives in RAID5 configuration. I got a warning today that Drive 3 is bad. I’ve ordered a new drive (same type, size) to replace it but was wondering what the procedure is?

My plan:
Power down the EX4
Pull the bad drive 3 out
Install the new drive into bay 3
Power on EX4

I’m assuming EX4 will just rebuild the RAID5 array automatically or do I need to do something else?

Cheers, Rob.