There is usually a button on the printer that clears the alarm, and it will print if it is out of ink or not.
You should just buy a yellow ink cartridge. If you refill the cartridge, that does not make it last forever. The nozzle can get clogged up with dried ink.
If you do not print color all the time, the jets can get plugged up with dried ink, and the printer will think you are out of ink. Start with some fresh new cartridges. Then you can refill them a few times.