Removed one kitchen cabinet others will be fine?
You are correct, the only purpose of the two nails were to align the cabinet edges together.  The screws in the back panel is what holds the cabinet up and provide the load support.