Bike goggles are designed to protect your eyes against dust and wind, while basketball goggles are used to protect your eyes from impact while playing sports. As they are designed for different purposes, i suggest you not use them to play basketball.
They are designed for different purposes. Bike goggles are used to prevent wind and other particles getting into eyes. Its design is similar to sunglasses. They are not as strong as basketball goggles because basketball goggles have a strap which can prevent the goggles falling down. What's more, basketball goggles are impact resistant. So you'd better not use bike goggles for basketball.