Yes, you can. Today, wifi is popular in cities, however, Ba Be still a remote minority area so when you are in Ba Be Lake tour from Hanoi, you can connect wifi in some homestays here, not all homestays have.