If I take an antipsychotic will I get psychosis from weed?

I had psychosis before when I was smoking but that's when I wasn't on meds. Now that I'm on an antipsychotic would the med prevent psychotic symptoms?