I guess I misunderstood your question, which seems to be: can you connect a wireless keyboard with a wire?
In general, the answer to that question is no. There is no connector on a basic wireless keyboard to which you can attach anything.
Thus, if you purchase a wireless keyboard **** and you would like to know if you can use it as a wired keyboard, the answer for most wireless keyboards is no, you can't.
There are more expensive keyboards that include both wired and wireless connectivity, such as this $60 model that can connect by wireless (2.4 GHz), Bluetooth (a different variety of wireless), or wired USB (and it lights up in multiple colors, to boot): https://www.amazon.com/Tezarre-TK61Pro-Bluetooth-Mechanical-Hotswappable/dp/B09FPD197K/?th=1
If a wireless keyboard has an internal rechargeable battery, it probably will use a USB cable to charge the battery. Not all such keyboards will be able to use that USB cable to communicate with the computer, as the one linked above does.