What does the Catholic Church teach about suicide?

I was taught in ccd in the 70 s if you took your own life you would go to hell, is that what the catholic church teaches?

The following link links should assist you in better understanding the Catholic Church’s teaching on the salvation of those who commit suicide. If you have any further questions or concerns that are not answered by these links, please contact Catholic Answers directly.
Recommended Reading:

]Is my grandmother in hell because she committed suicide?
Can culpabilty be completely mitigated in a suicide?**
]* How do I answer my children’s questions about suicide?**

DISCLAIMER: The views and opinions expressed in these forums do not necessarily reflect those of Catholic Answers. For official apologetics resources please visit www.catholic.com.