It depends since you didnt give enough info. If you kicked the corner of something while walking barefoot then it very well could have some broken bones. There isnt much you can do about it anyways as long as its not the toe broken and pointing sideways or something liek that, all you can really do is rest it for many weeks and try to stay off the toe.
It helps to have your shoes off and have it elevated off the ground, I've been through this. :)