Are these small yellow things on my lettuce worms?
These are probably insect eggs.
Being unmoving, tightly clustered together, and uniform in size, these are most likely insect eggs.
A number of common insects lay oblong yellow eggs similar to those in your image, including ladybugs and cabbage white butterflies. Yours look more like ladybug eggs to me, or perhaps some other kind of beetle egg.