Course 2 week 3 assignment

Your understanding is correct.
Please look at the documentation from the link provided here by @ai_curious