Hardware emulators?

I am new to Arduino so sorry in case I have missed some obvious documentation.

But is it possible to connect virtual inputs and outputs - emulators - to the IDE and write the code I eventually want to run on the hardware?

Welcome to the forum

Take a look at Wokwi if you want to run an emulator