As soon as one entry of collection type is published, can I take action in custom plugin?

Hi, I would like to how can I take action in custom plugin and get that entry as soon as the entry of collection type is published.