IRremote string code

Hi, can I send String code to IR diode with IRremote library?

Yes, see examples that come with the library.

irsend.sendNEC(Serial.readString().toInt(), 32);