Short answer
No. The size of the guest list is a practical decision and should be based on circumstances and means.
Islamic Guidance
What Islam teaches
Islam encourages generosity and hospitality but also discourages waste and extravagance.
Practical Guidance
What you can consider
Invite people thoughtfully within your means. A smaller wedding does not make the marriage less respectable.
Sources
Qur'an 7:31.