Let your current PI know about your plans early on and keep them in the loop. It's not uncommon for medical students to seek out other research opportunities, and most PIs are understanding and supportive. As long as you don't tell them two weeks before your start date that you're not going to be around despite the project and funding they've arranged for you, there won't be a problem.