yes you need to treat those two separately.
the only thing the starter motor does is, provide some engine rotation to trigger a spark from the ignition system. this rotation can also be provided in other ways (kickstart, push the bike). a non-working starter motor does not indicate a faulty ignition.
did you take a voltage reading off your battery? did you try to kickstart?