No reason why not.
Public footpaths are rights of way on private land, so if the landowner comes over to you and asks you not to, then you should stop.
Parks and beaches are often council owned, again the council or one of their employees could reasonably ask you to stop.