Object instance creation inside setup0{}

As a rookie on Arduino, I'm experimenting on building my own libraries, so I made one to generate Morse code.
The constructor function needs two parameters that have to be pulled out of EEPROM everytime the Arduino is power off and back on. My question is, can an object instance be created within the setup() function so a few lines of code can first pullthose parameters out of EEPROM and pass them to the instance constructor? Or instances can only be declared outside setup and loop?

Thanks
XE2BSS

If an object was declared inside setup() it would cease to exist when setup() exited. One way to work around that is to have a global pointer to store a reference to the object being created. Another choice is to move the parameters out of the constructor and make them something that can be set after construction.

Many thanks for the response and the suggestions.