Yes, you can use the Bang and Olufsen app* to set a limit for how long you want Beoplay A6 to play when you do not operate it. If you select 'Endless', Beoplay A6 continues to play until it is switched off.
*You can also use a computer, see: Can I use a computer to change settings on my Beoplay A6?