Yes, you can. It is legal for businesses, whether online or not, to choose whether to accept cryptocurrencies as payment. Online businesses are more likely to accept cryptocurrencies as payment for goods and services, but any businesses can decide for themselves what type of payments they accept.