Yes this is the normal behavior : Some targets get installed during the SonarCloudPrepare task.
Those target will then live until your build finishes (if you are using a microsoft hosted agent), or if you remove them manually in case you have your own build agent.