Dont make a habit of it. Tell your mate not to click the ads if you will also be using that PC to sign in.
if you clicked just once, you dont need to worry. but try to prevent such things. otherwise these can kill you