Actually, Jacques is incorrect. You will be required to collect your luggage and go through Customs in San Francisco. Your connecting flight to Miami will also likely depart from another terminal, requiring you to go through Security again.
No, you are registred for Miami and you luggage also. You don't have to collect it.
Thanks! Your answer is awaiting moderation.