Use inline LED transformer with light strip


I already have LED strips fitted under my kitchen wall cabinets and I wanted to replace these with Yeelight ones but was wondering how I can do this the current strips are wired into inline transformers and I don’t have plug sockets under the cabinets. Therefore my question is could I use the existing transformers that I have under my cabinets as long as they are 12v 1A rated?