cannabis in general will mess up your short term memory while high, so it isn't exactly the thing you want for that

if you want to learn to focus do some meditation or something:rasta: