Research first, then buy.
Oil choices depend on two things usually, the engine type (air cooled or liquid cooled) and local climate. A cold climate favors light oils and a hot climate favors the heavier 40-50-60 weight oils.
You can probably get by with what you bought though, but manufacturer recommendations are important.