Regulator size query

Hi, I currently use the larger 12v lighting regulator which I think is on it's last legs, I have a couple of the smaller types like those used on the Varitronic system. My question is can I just swap the faulty one with the smaller type ?
Thanks.
Thanks.