SFDC beginner and like to configure my VS code to connect development org.

But before connecting to Org I would like to execute some apex code "hello.apex" created during project creation.

Getting below error
"No default org is set. Run "SFDX: Create a Default Scratch Org" or "SFDX: Authorize an Org" to set one."

The code is below :

```
string tempvar = 'Enter_your_name_here';
System.debug('Hello World!');
System.debug('My name is ' + tempvar);

```

It is obvious this code is not related to any org. So is it mandatory to connect org to execute any code?