Operation costs when creating indices

Hi everyone, i’m a newbie to MongoDB.
I would like to know how much is the operation cost when running createIndex.
Currently, on the project i’m working on, there are a lot of these lines that constantly calls for create index.
I’m also curious if this has other implications.