Probably not. AC manufacturers are notorious for making IR codes that are incompatible or difficult to use with learning remotes. They put gaps in the code, change the code a button sends depending on the current state of the device, use checksums, use odd carrier frequencies etc…
This is how I used to do it when I was using IR control: