Mic/ Camera access

Is there a function to shutdown the camera access and mic access always automatically after the use?

No. Not onboard. Eventually with third party app.