Sometimes. It depends on the anthology. Some larger anthologies may pay authors royalties based on a schedule. Others, such as Chicken Soup for the Soul, will pay contributors a flat rate for their pieces and give a discount on buying copies of the book when it comes out.