Yes, you can book your ferry tickets online in advance in Singapore and Malaysia. This is often recommended, especially during peak travel periods, to ensure that you secure your desired travel dates and times.