Yes, and the reference number is essential for follow-up.
Key points
The bank is obligated to provide it immediately or within two business days at the most.
Keep it along with the date of your complaint and any responses, as you will need it if you contest or escalate the matter.
The figures, fees and limits in this answer vary by bank and change over time — confirm them with your bank or the official source before acting.