It can be done, but imo it's a bit of a "ghetto" bodge job, and it really depends on the tyre & rim being used, using more modern tubeless compatible tyres helps.
If you don't ride the bike regularly it's probably not worth the effort in my opinion, just use decent inner tubes & make sure the tyres are in good condition. You could even try those slime filled inner tubes that you can buy.
The only bike I've persisted with tubeless on is my modern hardtail bike, and that's only really to stop pinch flats when blasting down rocky descents, that's with wheels & tyres designed to run tubeless. All my other bikes just have regular tubes in them, and to be honest I very very rarely get a puncture.