lerlo is right. Just getting arrested does nothing for the cause. But what you are getting arrested for might help. For example if the protest costs polluters maybe they will consider mitigating their polluting.
My being arrested will have zero effect on climate change