Yes, but only as long as they respect the wishes of those around them
Like sleeping on public sidewalk outside a shop could make the shop owner lose profits due to the homeless driving away business. Or if they're actively making said public property worse for the people around them.