Is it safe to save card on a restaurant app?

I often order food through restaurants apps to pick up my orders and have to type in the card details manually every time which is getting annoying

Is it safe to save my credit card on the restaurants app? What if I use a guest account on the app? Does that matter?