your pretty lucky in that this is in a recess so not on show if you get my meaning.
You really need to try and get that roof rail out of the way to make sure all is good. Then yes, as you said sounds fine. I am only no expert but it is what I would do but would be careful to mask up well and keep the area being sprayed inside the recess and not out onto the panel.