Hi Avanti,
Please see the question here for an extensive answer. Your best bet is to check the Core documentation for these matters.
Creating an entity: no. That is only possible designtime.
Creating an object: yes. See Marius’ answer.