Yes, that looks generally right.
You should call model = model.cuda() as a method (with parentheses), but the initialization work flow looks correct.
PS: It looks like you are adding each line in the format ticks `. Just add ``` before and after the complete code block (or use the “Preformatted text” button.