can a nonpolar molecule be made up of polar bonds

Yes, if the the molecule is symmetrical enough for the bond dipoles to cancel out.

Example: O=C=O has polar bonds but their dipoles cancel out because of molecular symmetry.