No, not directly:
The Revit API requires a valid Revit API context. Such a context is only provided within the event handler of a Revit API event. Such an event requires a running Revit add-in and a running Revit session.
Yes, indirectly:
You can presumably achieve what you need anyway, by implementing a Revit add-in that defines an external event:
https://www.revitapidocs.com/2024/05089477-4612-35b2-81a2-89c4f44370ea.htm
You can raise the external event from your Excel add-in and access the Revit API in the event handler.