I'm pleased to see you again here in the Community, @DevgPhoto.
Thanks for providing exactly what you did with the cash you received from your customer. It's okay to record that deposit since you can manually add funds to deposits if this doesn't come from any sales forms.
However, It'd be best if you record this payment by creating sales receipts instead. The sales receipt is still one of the most important customer-related transactions in QuickBooks Online when receiving full payment at the time of the sale.
Let me provide you with the following helpful articles for more details:
Record customer payment in QuickBooks Online
How to Record Bank Deposits in QuickBooks Online
That's it. Keep me updated how it works for you.
I'm just a post away if you have other questions about recording cash payments in QuickBooks. I'm always here to help.