Is a RAID controller as easily replaced as a drive?

There is no one answer fits all. It really depends on the make and model of Raid controller.

Some have built in storage/memory, others can use a part of the hard drive itself to store its firmware.

You can be pretty guaranteed (but not always) that in case of a failure, getting another identical model will just work, but do not count that switching manufacturers/models will work.