For the vast majority of lenses, i.e. almost all lenses, a general lens cap would fit, as long as long as it had the right diameter.
There are a few exceptions, e.g. ultra wide angle lenses that have a protruding front element, as e.g. in this question where you need a special lens cap compatible with the lens, but those are really special cases.