As mentioned by Maroon, OP's question would possibly contradict the answer at Can a person shorten their own life by using the Death Note?
So before answering OP's question, lets first see what we know about the effect of writing your own name in the Death Note.
In the manga pilot, there is a rule that says:
You will not die if you write your own name in the Death Note, but it is not recommended.
In the movie The Last Name, we see L die from writing his own name in the Death Note:
Later it is revealed that L did not die and avoided death by writing his name in the notebook stating, "L Lawliet will die 23 days from this date".
The film ends 23 days later, with L dying peacefully.
In the one shot special, we read that the C-killer dies from writing his own name:
This resulted in C-Kira writing his own name in the Death Note.
Looking at the available evidence, it would indeed seem like a possible contradiction (although Miura-kun was about to try and commit suicide in the manga pilot and there is no evidence he wouldn't have died). Therefore, in order to correctly reply to OP's question I checked what should be considered canon according to the Death Note wiki. Since the only three sources considered as canon are the twelve original manga volumes, Death Note 13: How to Read, and the Death Note One-Shot-Special, it would seem that you can indeed commit suicide by using the Death Note as seen in the One-Shot-Special, when the C-killer couldn't handle the pressure and committed suicide.