Technically speaking it is possible to mount basketball hoops on vertical poles. So if you have one on your property that you own yourself, by all means do it. However, utility, lamp, and traffic poles are privately owned by either the city or your local electric company. Therefore, you cannot hang anything on them without appropriate consent — which they probably won’t give you.