Does word "sampler" have the same meaning in the following two sentences?

A candy sampler.

A sampler of French poets.
the same meaning