BA don't fly Boston to Miami so I suspect that you'll be on American Airlines for that leg and that will mean a change of terminal. At BOS you transfer on the buses that run continually around the terminals and, if I remember rightly, BA use Terminal E and American use B. The bus takes between 5 & 15 minutes depending on terminals.
If your international flight is on time and you aren't delayed at Immigration then you'll be OK with that timing but of course you can't guarantee that. However, Boston isn't a major international hub so you tend to get through Immigration quickly there. In any event American will put you on the next flight if you miss it. (There's a flight at 5.35pm so if you're concerned about the connection, ask BA to book you on that one).
Bookmarks