When you are sleeping with someone who has aids, do you immediately get aids?

NO. You may get HIV through body secretions such as blood, semen, or vaginal fluid. However, this is not guaranteed even in those circumstances. You cannot get it through casual contact.