is there a way to make it work as an access point without having to be connected to the main router?
Yes, if your "main" router is also an Apple AirPort product. In that case, the Time Capsule can connect using WiFi back to the main router. The Time Capsule will need to be no more than a room or two away from the main router to work in this type of setup, since the WiFi signal strength declines quickly with distance and obstructions.
Unfortunately, there is a real downside to this type of connection though, and that is that you will lose at least half of the potential speed on the entire network when the Time Capsule connects back to the main Apple AirPort router using only a WiFi connection.
So, while your network will have greater range, it will be a slower network. You can avoid this painful speed loss if you connect the Time Capsule back to the main AirPort router using a permanent wired Ethernet cable connection.
If your "main" router is a non-Apple device, the only way that the Time Capsule can act as an access point is with a permanent wired Ethernet cable connection back to the main router. It cannot connect to the main router using only a wireless connection if the main router is not another Apple AirPort product.
MoCa adapters or powerline adapters are a possibility if you cannot run the Ethernet cabling, but neither of these types of connections will perform as well as a simple Ethernet cable connection. But, they are a better way to go though than trying to use only WiFi to extend a network.