Yes a kettle will boil water quicker when there is less water in the kettle.
When you have less water in the kettle it takes less time to boil the water in the kettle because there's less water needed to be heated up.
When you have more water in the kettle it takes a bit longer to bring the water in the kettle to the boiling point.
If you just want to make a little tea such as one or two cups of tea and you need to boil water then just fill the kettle halfway.
The kettle will boil the water faster than it would if the kettle was full of water.
A stove top kettle that you put on the stove to boil water will boil much faster than an electric kettle will.
But if you're using an electric kettle then fill it just enough to boil the amount of water you need so that it can also save electricity as well and heat the water much faster.