No. If you want to speak with law enforcement, you can. It is called a casual encounter. If you do not wish to speak to them, you do not have to and you are free to disengage from the encounter unless they inform you that you have been detained.