You can rely on it. But if the language running the site is ASP.NET, it is safer to use the ClientID. If the ID of the control changes, your code will adapt.
e.g. For Javascript running over ASP.NET
var myCanvas = document.getElementById("<%=myCanvas.ClientID%>");