can i use a starter motor of motorcycle as an alternator???
Yes, and no.
Using a conventional DC electric motor and driving it mechanically will act as a generator not alternator. With this said with proper controls and running at the correct it will function provide an electrical signal which could be used to power something.
Niel