Can I still get into MIT with a B in AP Physics (online course)?

I took physics the summer before my junior year at a community college and received a B (mainly because I had to miss three weeks because my actual school was still in session). Junior year I took AP Physics online and also got a B because their standards were so strict. Do I still have a shot at these schools? My gpa unweighted is a 3.8 and weighted is a 4.16.

You do not need straight A’s in order to have a chance at MIT. If anything you might retake 8.01 (or take 8.012).